package cn.buyclss.backend.mapper;

import cn.buyclss.backend.entity.domain.User;
import cn.buyclss.backend.entity.domain.UserExample;
import cn.buyclss.backend.entity.domain.UserRoleRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    /**
     * @mbg.generated 2019-02-20
     */
    long countByExample(UserExample example);

    /**
     * @mbg.generated 2019-02-20
     */
    int deleteByExample(UserExample example);

    /**
     * @mbg.generated 2019-02-20
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * @mbg.generated 2019-02-20
     */
    int insert(User record);

    /**
     * @mbg.generated 2019-02-20
     */
    int insertSelective(User record);

    /**
     * @mbg.generated 2019-02-20
     */
    List<User> selectByExample(UserExample example);

    /**
     * @mbg.generated 2019-02-20
     */
    User selectByPrimaryKey(Integer id);

    /**
     * @mbg.generated 2019-02-20
     */
    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    /**
     * @mbg.generated 2019-02-20
     */
    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    /**
     * @mbg.generated 2019-02-20
     */
    int updateByPrimaryKeySelective(User record);

    /**
     * @mbg.generated 2019-02-20
     */
    int updateByPrimaryKey(User record);

    UserRoleRelation getRolesByUserId(Integer id);
}